import httpInstance from "@/utils/http";

export function getCategoryAPI (id){
  return httpInstance({
    url:'/category',
    //get请求省略methods
    params:{
      id
    }
  })
}

export function getCategoryFilterAPI(id){
  return httpInstance({
    url:'/category/sub/filter',
    //get请求省略methods
    params:{
      id
    }
  })
}

export const getSubCategoryAPI=(data)=>{
  return httpInstance({
    url:'/category/goods/temporary',
    method:'POST',
    data
  })
}
